<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="login.Login"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Join Result Page</title>
<style>
#success_join {
	font-family: 'Nanum Gothic', sans-serif;
}

#search_result_id{
	width: 500px;
	height: 350px;
	
	padding-top: 50px;
}

.se_id_res{
	width: 100px;
	height: 62px;
	color: white;
	font-size: 20px;
	font-weight: bold;
	background-color: #C90000;
	border:0.5px solid white;
	border-radius: 10px;
	margin-top: 50px;
	
}

#se_id_res_login{
	background-image: url('../images/searid_login.png');
	background-size:100% 100%;
	margin-right: 20px;
}

#se_id_res_home{
	background-image: url('../images/searid_home.png');
	background-size:100% 100%;
}

label{
	font-size: 30px;
	font-family: 'Nanum Gothic', sans-serif;
}


</style>
</head>
<body>
<jsp:useBean id="bean" class="login.Login" scope="page" />
<jsp:setProperty property="*" name="bean" />

	<div id='search_result_id'>
		<%
			if (bean.insert()) { %>
				<label>정상적으로 가입되었습니다. </label>
				<p/>
					<input type='button' id = 'se_id_res_login' class='se_id_res' onclick="location.href='Main.jsp?inc_content=../ColdEyes/log.jsp'">
			<%} else { %>
				<script>
					alert("오류가 발생하였습니다. 다시 시도해주십시오.");
					location.href="Main.jsp?inc_content=../login/join.jsp";
				</script> 
		<%} %>
	</div>
</body>
</html>